package com.class03._extends.test;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/2 11:35
 */
public class A {
    String name;
    int age;
    String phone;

    //    无参数无返回值
    public void show() {
        System.out.println("B show");
    }

    //    无参数有返回值
    public B getB() {
        return new B();
    }

    //    有参无返回值
    public void setAge(int age) {
        this.age = age;
    }

    //    无参有返回值
    public int getAge() {
        return age;
    }
}
